package com.hx.base.others;

/**
 * @author Minghua Chen
 * @date 2020-08-29 23:54
 */
public class StringTest {
    public static void main(String[] args) {
        String str = " 5755 ";
        System.out.println("trim前" + str.length());
        str = str.trim();
        System.out.println("trim后" + str.length());
        test01();

    }

    public static void test01() {
        String str = "hello";
        char[] chars = str.toCharArray();
        for (char each : chars) {
            System.out.println(each);
        }
    }
}
